#!/bin/bash

CMAKE_FILE="../CMakeLists.txt"
PROJECT=`awk '/^set\(PROJECT/ {print $2}' $CMAKE_FILE`

if [ "$1" = "" ]; then
    TS_FILE=${PROJECT}_`echo $LANG | awk -F"." '{print($1)}'`.ts
else
    TS_FILE=$1
fi


lupdate ../*.h ../*.cpp -ts $TS_FILE  && \
linguist $TS_FILE

